import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '@/views/Login.vue'
import Home from '@/views/home/home.vue'
import empty from '@/views/empty.vue'
import detail from '@/views/details/detail.vue'

import bzIndex from '@/views/gongshui/gsIndex.vue'
import clIndex from '@/views/chuli/clIndex.vue'
import scIndex from '@/views/shuichang/scIndex.vue'
import syIndex from '@/views/shuiyuan/syIndex.vue'
import wsbzIndex from '@/views/wushuibengzhan/wsbzIndex.vue'
import wscIndex from '@/views/wushuichang/wscIndex.vue'



Vue.use(Router)

export default new Router({
    routes: [
        // {
        //     path: '/',
        //     name: 'login',
        //     component: Login
        // },
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/home',
            name: 'home',
            component: Home
        },
        {
            path: '/bengzhan',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'bzIndex'
            },
            children: [{
                path: 'index',
                name: 'bzIndex',
                component: bzIndex,
            }]
        },
        {
            path: '/chuli',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'clIndex'
            },
            children: [{
                path: 'index',
                name: 'clIndex',
                component: clIndex,
            }]
        },
        {
            path: '/shuichang',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'scIndex'
            },
            children: [{
                path: 'index',
                name: 'scIndex',
                component: scIndex,
            }]
        },
        {
            path: '/shuiyuan',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'syIndex'
            },
            children: [{
                path: 'index',
                name: 'syIndex',
                component: syIndex,
            }]
        },
        {
            path: '/wsbengzhan',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'wsbzIndex'
            },
            children: [{
                path: 'index',
                name: 'wsbzIndex',
                component: wsbzIndex,
            }]
        },
        {
            path: '/wschang',
            name: 'empty',
            component: empty,
            redirect: {
                name: 'wscIndex'
            },
            children: [{
                path: 'index',
                name: 'wscIndex',
                component: wscIndex,
            }]
        },
        {
            path: '/detail',
            name: 'detail',
            component: detail,
        }
    ]
})